package org.esjsoftware.v2m.rim.model;

import org.esjsoftware.v2m.rim.entity.ConfigurationEntity;
import org.esjsoftware.v2m.rim.util.datastorage.rms.RMSHandller;

/**
 * 
 * @author Ernest
 *
 */
public class ConfigurationModel extends AbstractModel{
	
	public void saveConfiguration(String userName, String password, String sender){
		RMSHandller.Save("2", userName);
		RMSHandller.Save("3", password);
		RMSHandller.Save("4", sender);
	}
	
	public ConfigurationEntity getConfiguration(){
		ConfigurationEntity ce = new ConfigurationEntity();
		ce.setUserName(RMSHandller.Read("2"));
		ce.setPassword(RMSHandller.Read("3"));
		ce.setSender(RMSHandller.Read("4"));
		return ce;
	}
}
